﻿@model AgileZen.Models.Projects

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
@Html.ActionLink("Me", "Index", "User", null, null)

<table>
@foreach (var project in Model.Items)
{ 
    <tr>
        <td>@Html.ActionLink(project.Name, "Details", "Project", new { id = project.Id }, null)</td> 
        <td>@Html.ActionLink("Stories", "Index", "Story", new { projectid = project.Id }, null)</td>
        <td>@Html.ActionLink("Phases", "Index", "Phase", new { projectid = project.Id }, null)</td>
        <td>@Html.ActionLink("Tags", "Index", "Tag", new { projectid = project.Id }, null)</td>
        <td>@Html.ActionLink("Roles", "Index", "Role", new { projectid = project.Id }, null)</td>
        <td>@Html.ActionLink("Members", "ProjectMembers", "Project", new { projectid = project.Id }, null)</td> 
        <td>@Html.ActionLink("Edit", "Edit", "Project", new { projectid = project.Id }, null)</td>    
    </tr>
}
</table>
